﻿@model LOMBARDISPICK.Model.NFLTeam
@using LOMBARDISPICK.Web.Helpers;

@{
	ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Ajax.BeginForm("Edit", new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "dialog", OnFailure = "PostFailure", OnSuccess = "PostSuccess", OnComplete = "PostOnComplete" }))
{
	@Html.ValidationSummary(true)
	<fieldset>
		<legend>NFL Team</legend>

		@Html.HiddenFor(model => model.NFLTeamsID)

		<span class="editor-label">
			@Html.LabelFor(model => model.TeamName)
			@Html.RequiredFieldFor(model => model.TeamName)
		</span>
		<div class="editor-field">
			@Html.EditorFor(model => model.TeamName)
			@Html.ValidationMessageFor(model => model.TeamName)
		</div>
		<br />

		<span class="editor-label">
			@Html.LabelFor(model => model.TeamNameAbbreviations)
			@Html.RequiredFieldFor(model => model.TeamNameAbbreviations)
		</span>
		<div class="editor-field">
			@Html.EditorFor(model => model.TeamNameAbbreviations)
			@Html.ValidationMessageFor(model => model.TeamNameAbbreviations)
		</div>
		<br />

		<p>
			<input type="submit" class="input-rounded-button" value="Save" />
		</p>

	</fieldset>
}

<div>
	@Html.ActionLink("Back to List", "Index")
</div>

